package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.XDetailsMapper;
import com.ruoyi.system.domain.XDetails;
import com.ruoyi.system.service.IXDetailsService;

/**
 * 销售明细Service业务层处理
 * 
 * @author GGJ
 * @date 2024-05-13
 */
@Service
public class XDetailsServiceImpl implements IXDetailsService 
{
    @Autowired
    private XDetailsMapper xDetailsMapper;

    /**
     * 查询销售明细
     * 
     * @param id 销售明细主键
     * @return 销售明细
     */
    @Override
    public XDetails selectXDetailsById(Long id)
    {
        return xDetailsMapper.selectXDetailsById(id);
    }

    /**
     * 查询销售明细列表
     * 
     * @param xDetails 销售明细
     * @return 销售明细
     */
    @Override
    public List<XDetails> selectXDetailsList(XDetails xDetails)
    {
        return xDetailsMapper.selectXDetailsList(xDetails);
    }

    /**
     * 新增销售明细
     * 
     * @param xDetails 销售明细
     * @return 结果
     */
    @Override
    public int insertXDetails(XDetails xDetails)
    {
        return xDetailsMapper.insertXDetails(xDetails);
    }

    /**
     * 修改销售明细
     * 
     * @param xDetails 销售明细
     * @return 结果
     */
    @Override
    public int updateXDetails(XDetails xDetails)
    {
        return xDetailsMapper.updateXDetails(xDetails);
    }

    /**
     * 批量删除销售明细
     * 
     * @param ids 需要删除的销售明细主键
     * @return 结果
     */
    @Override
    public int deleteXDetailsByIds(Long[] ids)
    {
        return xDetailsMapper.deleteXDetailsByIds(ids);
    }

    /**
     * 删除销售明细信息
     * 
     * @param id 销售明细主键
     * @return 结果
     */
    @Override
    public int deleteXDetailsById(Long id)
    {
        return xDetailsMapper.deleteXDetailsById(id);
    }
}
